home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / AmiTCPsdk_40.lha / AmiTCP-4.0 / netinclude / protocols / rwhod.h < prev    next >
C/C++ Source or Header  |  1994-10-05  |  1KB  |  39 lines

  1. #ifndef PROTOCOLS_RWHOD_H
  2. #define    PROTOCOLS_RWHOD_H \
  3.        "$Id: rwhod.h,v 4.1 1994/10/05 23:17:11 ppessi Exp $
  4. /*
  5.  *      rwho protocol packet format.
  6.  *
  7.  *      Copyright © 1994 AmiTCP/IP Group,
  8.  *                       Network Solutions Development, Inc.
  9.  *                       All rights reserved.
  10.  */
  11.  
  12. struct    outmp {
  13.     char    out_line[8];        /* tty name */
  14.     char    out_name[8];        /* user id */
  15.     long    out_time;        /* time on */
  16. };
  17.  
  18. struct    whod {
  19.     char    wd_vers;        /* protocol version # */
  20.     char    wd_type;        /* packet type, see below */
  21.     char    wd_pad[2];
  22.     int    wd_sendtime;        /* time stamp by sender */
  23.     int    wd_recvtime;        /* time stamp applied by receiver */
  24.     char    wd_hostname[32];    /* hosts's name */
  25.     int    wd_loadav[3];        /* load average as in uptime */
  26.     int    wd_boottime;        /* time system booted */
  27.     struct    whoent {
  28.         struct    outmp we_utmp;    /* active tty info */
  29.         int    we_idle;    /* tty idle time */
  30.     } wd_we[1024 / sizeof (struct whoent)];
  31. };
  32.  
  33. #define    WHODVERSION    1
  34. #define    WHODTYPE_STATUS    1        /* host status */
  35.  
  36. #define    _PATH_RWHODIR    "/var/rwho"
  37.  
  38. #endif /* !PROTOCOLS_RWHOD_H */
  39.